package com.ttbj.core.dao.redis;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @Description:Redis Set BaseDao接口类
 * @Author: Daniel
 * @CreateDate: 2015-4-28 上午11:03:17
 * @Version: V1.0
 */
public interface IRedisHashBaseDao {

    public Long hSet(final String key, final String field, final String value);

    public String hmSet(final String key, Map<String, String> map);

    public Long hSetNX(final String key, final String field, final String value);

    public List<String> hVals(final String key);

    public String hGet(final String key, final String field);

    public Map<String, String> hGetAll(final String key);

    public Boolean hExists(final String key, final String field);

    public Long hDel(final String key, final String... fields);

    public Long  hIncrBy(final String key, final String field, Long increment);

    public Double hIncrByFloat(final String key, final String field, Double increment);

    public Set<String> hKeys(final String key);

    public Long hLen(final String key);

    public List<String> hmGet(final String key, final String... fields);
}
